//
//  EPOSProductmodel.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-04-25 15:12:51
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSProductmodel.h"

@implementation EPOSProductmodel

+(id) getEPOSProductmodelFromDictionary :(NSDictionary *) dic {
    EPOSProductmodel * productmodel = [[EPOSProductmodel alloc]init] ;
    productmodel.category = [dic objectForKey:@"category"];
    productmodel.marketPrice = [dic objectForKey:@"marketPrice"];
    productmodel.sex = [dic objectForKey:@"sex"];
    productmodel.stock = [dic objectForKey:@"stock"];
    productmodel.brandCode = [dic objectForKey:@"brandCode"];
    productmodel.mainPhoto = [dic objectForKey:@"mainPhoto"];
    productmodel.colorSn = [dic objectForKey:@"colorSn"];
    productmodel.catName = [dic objectForKey:@"catName"];
    productmodel.catId = [dic objectForKey:@"catId"];
    productmodel.goodsSn = [dic objectForKey:@"goodsSn"];
    productmodel.goodsName = [dic objectForKey:@"goodsName"];
    return productmodel ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSProductmodel :(EPOSProductmodel* ) productmodel {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:productmodel.category forKey:@"category"];
    [dic setObject:productmodel.marketPrice forKey:@"marketPrice"];
    [dic setObject:productmodel.sex forKey:@"sex"];
    [dic setObject:productmodel.stock forKey:@"stock"];
    [dic setObject:productmodel.brandCode forKey:@"brandCode"];
    [dic setObject:productmodel.mainPhoto forKey:@"mainPhoto"];
    [dic setObject:productmodel.colorSn forKey:@"colorSn"];
    [dic setObject:productmodel.catName forKey:@"catName"];
    [dic setObject:productmodel.catId forKey:@"catId"];
    [dic setObject:productmodel.goodsSn forKey:@"goodsSn"];
    [dic setObject:productmodel.goodsName forKey:@"goodsName"];
    return dic ;
}

@end